#include "VOutputWidget.h"
#include "ui_VOutputWidget.h"

VOutputWidget::VOutputWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::VOutputWidget)
{
    ui->setupUi(this);

    _btn_clear = new QPushButton(this);
    _btn_clear->setText("清空");
    connect(_btn_clear, &QPushButton::clicked,[=](){
         ui->textedit_output->clear();
    });
}

VOutputWidget::~VOutputWidget()
{
    delete ui;
}

void VOutputWidget::output_append(QString text)
{
    ui->textedit_output->append(text);
}

void VOutputWidget::output_clear()
{
    ui->textedit_output->clear();
}
